package org.neuedu.dao;
import org.neuedu.bean.*;

import java.util.List;

public interface UserDao {
    //注册
    int saveUserInfo (User user) ;
    // 根据注册邮箱查询是否有用户
    int serchUserByRegEmail(String email);
    // 添加普通用户权限
    int saveRoleUserInfo(User user);
    User serchUidByEmail(User user);
    User serchUserByEmailAndPass(User user);
    List<Role> serchRolesByUid(Integer uid);
    User updateKissnum(Integer kiss,Integer id);
    //签到
    int qd(Integer id);
    //插签到
    boolean userhitcard(int id);
    List<Article> userArticle(Integer id);
    List<Reply> userReply(Integer uid);
    User serchUserset(Integer id);
    int updateUserset(User user);
    List<Problem> getTwInfo();
    User updatepassset(Integer id);
    int updatepasssets(Integer id ,String pass);
    //根据email修改头像
    int updateSetUpAvatar(User user);
}
